import fly from '../utils/request'
/**
 * 项目列表
 **/
export function taskList(data = {}) {
  return fly.request('/api/fi/coreTask/page', data, {
    method: 'GET'
  })
}

export function getWorkTask(data = {perm:'fi:coreTask:work'}) {
  return fly.request('/api/system/user/work', data, {
    method: 'GET'
  })
}

export function doTask(data = {}) {
  return fly.request('/api/fi/coreTask/update', data, {
    method: 'PUT'
  })
}



export function addTaskFeedback(data = {}) {
  return fly.request('/api/task/add/feedback', data, {
    method: 'POST'
  })
}

export function taskFeedbackList(data = {}) {
  return fly.request('/api/fi/coreTask/get', data, {
    method: 'GET'
  })
}

export function delTask(data = {}) {
  return fly.request('/api/task/del', data, {
    method: 'POST'
  })
}
